FROM bode135/bd_ssh_py36:latest

# 这里注意是根路径下的dir_name
ENV dir_name="/bd2102_myblog"

# 系统语言设置为中文
ENV LANG C.UTF-8

RUN mkdir $dir_name
WORKDIR $dir_name
COPY .  $dir_name

RUN apt-get update --assume-yes
RUN apt-get install lsof --assume-yes
#RUN apt-get install vim --assume-yes

RUN python -m pip install --upgrade pip
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt

EXPOSE 80
CMD ["/bin/sh"]


